{
  interface IdFunc<Type> {
    id: (value: Type) => Type
    ids: () => Type[]
  }
  
  let obj: IdFunc<number> = {
    id(value) { return value },
    ids() { return [1, 3, 5] }
  }
  
  console.log(obj);
}

